﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
using Microsoft.Win32;

namespace FrameworkCheckerCMD {
	class Program {
		static void Main(string[ ] args) {
			FrameworkCheckerLib.FC fc = new FrameworkCheckerLib.FC( );

			List<string> vNET = fc.VersionsNET( );
			if (vNET != null && vNET.Count > 0)
				foreach (string name in vNET) {
					System.Console.WriteLine(".NET Framework " + name);
				} else
				System.Console.WriteLine(".NET Framework BRAK!");
			System.Console.WriteLine("- - - - - - - - - - - - - - - - - -");
			List<string> vSilverLight = fc.VersionsSilverLight( );
			if (vSilverLight != null && vSilverLight.Count > 0)
				foreach (string name in vSilverLight) {
					System.Console.WriteLine("Silverlight " + name);
				} else
				System.Console.WriteLine("Silverlight BRAK!");
			System.Console.WriteLine("- - - - - - - - - - - - - - - - - -");
			List<string> vDirectx = fc.VersionsDirectX( );
			if (vDirectx != null && vDirectx.Count > 0)
				foreach (string name in vDirectx) {
					System.Console.WriteLine("DirectX " + name);
				} else
				System.Console.WriteLine("DirectX BRAK!");
			System.Console.WriteLine("- - - - - - - - - - - - - - - - - -");
			List<string> vXNA = fc.VersionsXNA( );
			if (vXNA != null && vNET.Count > 0)
				foreach (string name in vXNA) {
					System.Console.WriteLine("XNA Framework " + name);
				} else
				System.Console.WriteLine("XNA Framework BRAK!");
			System.Console.ReadKey( );
		}
	}
}